#ifndef _MD5_H
#define _MD5_H

/*$Id: md5.h 5 2012-10-26 04:17:18Z hymm91@gmail.com $*/
#ifdef __cplusplus
extern "C" {
#endif

typedef unsigned char uint8;
typedef unsigned int uint32;


struct md5_context
{
    uint32 total[2];
    uint32 state[4];
    uint8 buffer[64];
};

void md5_starts( struct md5_context *ctx );
void md5_update( struct md5_context *ctx, uint8 *input, uint32 length );
void md5_finish( struct md5_context *ctx, uint8 digest[16] );

void md5_hash(uint8 digest[16], uint8 *input, uint32 length);

#ifdef __cplusplus
}
#endif

#endif /* md5.h */

/*$Id: md5.h 5 2012-10-26 04:17:18Z hymm91@gmail.com $*/
